package com.my.project.dubbo.order.dal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

/**
 * @Author:wangbin.
 * @Description.
 * @Date:Created in 11:18 2017/8/31.
 * @Modified By:
 */
@Repository
public class OrderDaoImpl implements OrderDao {

    @Autowired
    JdbcTemplate jdbcTemplate;

    public void insertOrder() {
        jdbcTemplate.execute("insert INTO order_order(price,order_time,status) values(10,now(),1)");
    }
}
